import {get, post, del, put} from "@/apis/http/request";
import {ProxyUpgradeConfig} from "@/apis/model/proxy/ProxyUpgradeConfigModel";

/**
* 得到列表
* @param params
*/
export const getProxyUpgradeConfigList = (params: any) => get("/proxyUpgradeConfig/list", params)

/**
* 得到分页列表
* @param params
*/
export const proxyUpgradeConfigPage = (params: any) => post("/proxyUpgradeConfig/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteProxyUpgradeConfigById = (id: number) => del("/proxyUpgradeConfig/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertProxyUpgradeConfig = (param: ProxyUpgradeConfig) => post("/proxyUpgradeConfig", param)

/**
* 更新数据
* @param param
*/
export const updateProxyUpgradeConfig = (param: ProxyUpgradeConfig) => put("/proxyUpgradeConfig", param)